package com.eiisan.user.model.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description: 用户表
 * @Author gragonfly
 * @Date 2019/6/24
 **/
@Data
@ApiModel(description = "用户数据")
public class User {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String nickName;

    /**
     * 手机号(登录号)
     */
    @ApiModelProperty(value = "手机号(登录号)")
    private String mobile;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 性别 1男 2女 0未知
     */
    @ApiModelProperty(value = "性别  1男  2女 0未知")
    private Byte sex;

    /**
     * 用户状态 1正常  2冻结
     */
    @ApiModelProperty(value = "用户状态 1正常  2冻结")
    private Byte userStatus;

    /**
     * 用户头像url
     */
    @ApiModelProperty(value = "用户头像url")
    private String avatarUrl;

    /**
     * QQ联合登陆id
     */
    @ApiModelProperty(value = "QQ联合登陆id")
    private String qqOpenid;

    /**
     * 微信公众号关注id
     */
    @ApiModelProperty(value = "微信公众号关注id")
    private String wxOpenid;

    /**
     * 注册时间
     */
    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    private Long roleId;
}
